package com.fdb.smcts.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.fdb.smcts.core.validate.NumTypeValidatorImpl;

/**
 * 数字校验
 * 
 * @author heyingfeng
 * @since 2019年1月21日 上午10:59:08
 * @version 1.0
 */
@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = NumTypeValidatorImpl.class)
public @interface NumType {

	String message() default "数字校验失败";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
}
